package com.blrs.mapper;

import com.blrs.domain.ActivityTraining;

import java.util.List;

/**
 * 活动信息培训Mapper接口
 * 
 * @author yang
 * @date 2023-11-22
 */
public interface ActivityTrainingMapper 
{
    /**
     * 查询活动信息培训
     * 
     * @param activityId 活动信息培训主键
     * @return 活动信息培训
     */
    public ActivityTraining selectActivityTrainingByActivityId(String activityId);
    public List<ActivityTraining> selectActivityTrainingByEnterpriseIdList(ActivityTraining activityTraining);
    public List<ActivityTraining> selectActivityTrainingByOrgId(ActivityTraining activityTraining);

    /**
     * 查询活动信息培训列表
     * 
     * @param activityTraining 活动信息培训
     * @return 活动信息培训集合
     */
    public List<ActivityTraining> selectActivityTrainingList(ActivityTraining activityTraining);

    /**
     * 新增活动信息培训
     * 
     * @param activityTraining 活动信息培训
     * @return 结果
     */
    public int insertActivityTraining(ActivityTraining activityTraining);

    /**
     * 修改活动信息培训
     * 
     * @param activityTraining 活动信息培训
     * @return 结果
     */
    public int updateActivityTraining(ActivityTraining activityTraining);

    /**
     * 删除活动信息培训
     * 
     * @param activityId 活动信息培训主键
     * @return 结果
     */
    public int deleteActivityTrainingByActivityId(String activityId);

    /**
     * 批量删除活动信息培训
     * 
     * @param activityIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteActivityTrainingByActivityIds(String[] activityIds);

    String selectIsSend(String activityId);

    int updateActivityStatus(ActivityTraining activityTraining);

    /**
     * 接收方查询活动列表(审核状态不允许展示)
     */
     List<ActivityTraining> selectActivityTrainingListRecive(ActivityTraining activityTraining);

    List<ActivityTraining> selectActivityTrainingListNoExamine();

    int updateScore(ActivityTraining activityTraining);

    List<ActivityTraining> selectActivityTrainingPublicList();

    int updateActivityTrainingByStatus(ActivityTraining activityTraining);

    List<ActivityTraining> selectActivityTrainingListTopThree(Long orgId);

    List<String> selectActivityTypeList();

    List<ActivityTraining> selectActivityTrainingOneList(ActivityTraining activityTraining);

    List<ActivityTraining> selectActivityTrainingListExamine(ActivityTraining activityTraining);

    void updateActivityTrainingEnd();

    void updateActivityTrainingStatus(ActivityTraining activityTraining);

    List<ActivityTraining> selectActivityTrainingListById(String activityId);

}
